package cn.remex.core.log;

import ch.qos.logback.classic.pattern.ThrowableProxyConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;
import cn.remex.core.util.JsonHelper;

/**
 * Disc:
 * Created by xinxinran on 2017/2/12.
 */
public class ExceptionJsonFormatConverter extends ThrowableProxyConverter {

    @Override
    public String convert(ILoggingEvent event) {
        String oriException = super.convert(event);

        return JsonHelper.toJsonString(oriException);
    }
}
